package com.mc.book.pojo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

@ApiModel("分页")
public class PageBean {
    @ApiModelProperty("页数")
    private Integer pageNum;
    @ApiModelProperty("每页数量")
    private Integer pageSize;

    public Integer getPageNum() {
        return pageNum;
    }

    public void setPageNum(Integer pageNum) {
        this.pageNum = pageNum;
    }

    public Integer getPageSize() {
        return pageSize;
    }

    public void setPageSize(Integer pageSize) {
        this.pageSize = pageSize;
    }

    public Boolean pageCheckFields() {

        if ((pageNum == null || pageSize == null)) {
            return false;
        }
        return true;
    }
}
